﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterALSafa.Master" AutoEventWireup="true" CodeBehind="Grades.aspx.cs" Inherits="School.Pages.Organization.Grades" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<h1>الصفوف</h1>
    <table width="100%">
        <tr>
            <td style="width: 74px">اسم الصف</td>
            <td>
                <asp:TextBox ID="TxtName" runat="server" Width="150px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ControlToValidate="TxtName" Display="Dynamic" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 74px">المجمع</td>
            <td>
                <asp:DropDownList ID="LstCampuses" runat="server" CssClass="LstCampuses" 
                    SkinID="LstCampuses" AutoPostBack="True" 
                    onselectedindexchanged="LstCampuses_SelectedIndexChanged" 
                    AppendDataBoundItems="True" DataTextField="Name" DataValueField="Id" 
                    Width="153px">
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="LstCampuses" Display="Dynamic" ErrorMessage="*" 
                    ForeColor="Red" InitialValue="-1">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 74px">الشهادة</td>
            <td>
                <asp:DropDownList ID="LstCertificates" runat="server" 
                    CssClass="LstCertificates" AutoPostBack="True" 
                    onselectedindexchanged="LstCertificates_SelectedIndexChanged" 
                    AppendDataBoundItems="True" DataTextField="Name" DataValueField="Id" 
                    Width="153px">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td style="width: 74px">المرحلة</td>
            <td>
                <asp:DropDownList ID="LstStages" runat="server" AppendDataBoundItems="True" 
                    AutoPostBack="True" DataTextField="Name" DataValueField="Id" 
                    onselectedindexchanged="LstStages_SelectedIndexChanged" Width="153px">
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="LstStages" ErrorMessage="*" ForeColor="Red" InitialValue="0"></asp:RequiredFieldValidator>
                <asp:Label ID="lblcode" runat="server" Visible="False"></asp:Label>
            </td>
        </tr>
        <tr>
            <td style="width: 74px">كود</td>
            <td>
                <asp:TextBox ID="TxtCode" runat="server" Width="150px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                    ControlToValidate="TxtCode" Display="Dynamic" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 74px">الوصف</td>
            <td>
                <asp:TextBox ID="TxtDescription" runat="server" TextMode="MultiLine"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:Button ID="Button1" runat="server" Text="حفظ" onclick="Button1_Click" 
                    CssClass="graybutton" />
            </td>
        </tr>
    </table>
    
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" ViewStateMode="Disabled"
    Width="100%" CssClass="Grid" HeaderStyle-CssClass="GridHeaderFooter" FooterStyle-CssClass="GridHeaderFooter"
    PagerStyle-CssClass="GridPager" AlternatingRowStyle-CssClass="GridItemAltername">
<AlternatingRowStyle CssClass="GridItemAltername"></AlternatingRowStyle>
        <Columns>
            <asp:BoundField DataField="Code" HeaderText="#" />
            <asp:BoundField DataField="Name" HeaderText="الأسم" />
            <asp:BoundField DataField="Description" HeaderText="الوصف" />
            <asp:BoundField DataField="CName" HeaderText="المجمع" />
            <asp:BoundField DataField="CeName" HeaderText="الشهادة" />
            <asp:BoundField DataField="SName" HeaderText="المرحلة" />
            <asp:HyperLinkField DataNavigateUrlFields="Id" 
                DataNavigateUrlFormatString="Grades.aspx?Id={0}" Text="تعديل" />
        </Columns>

<FooterStyle CssClass="GridHeaderFooter"></FooterStyle>

<HeaderStyle CssClass="GridHeaderFooter"></HeaderStyle>

<PagerStyle CssClass="GridPager"></PagerStyle>
    </asp:GridView>
</asp:Content>
